package com.rzjm.exercise.module.service.impl;

import com.rzjm.exercise.common.base.service.impl.BaseServiceImpl;
import com.rzjm.exercise.module.dao.CitizenDao;
import com.rzjm.exercise.module.domain.Citizen;
import com.rzjm.exercise.module.service.CitizenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 方法说明： 实现层
 * @author Mr.Zhou
 * @date 2020/3/17
 */
@Service
public class CitizenServiceImpl extends BaseServiceImpl<CitizenDao, Citizen> implements CitizenService {

    @Resource
    private CitizenDao citizenDao;

    @Override
    public List<Citizen> getNoSurveyListByTownId(Integer townId) {
        return citizenDao.getNoSurveyListByTownId(townId);
    }

    @Override
    public Integer getNoSurveyCountByTownId(Integer townId) {
        return citizenDao.getNoSurveyCountByTownId(townId);
    }
}
